

import types from './mutation-types'
import { Fetch } from '@/utils/http_common'

const actions = {
  getCompanyAction({ commit, state }, params) {
    params = Object.assign({}, state.params, params)
    delete params.created_at
    Fetch.get('users/fetch_company', { params: params }).then(res => {
      commit(types.FETCH_COMPANY, {
        keyword:res.keyword
      })
    })
  },

}

export default actions
